import pytest
from selenium import webdriver
import time
@pytest.fixture(scope='function',autouse=True,name='driver')
def browser():
    driver = webdriver.Chrome()
    driver.get("http://121.40.86.4:8899/admin/login")
    driver.maximize_window()
    driver.implicitly_wait(15)
    yield driver
    time.sleep(2)
    driver.quit()